/*


import com.dao.UserDao;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

import com.pojo.Address;
import com.pojo.User;
import com.pojo.Users;
import com.util.BaseDao;




import java.util.*;




public class Main {
    public static void main(String[] args) throws Exception {
        User user = new User();
        user.setuName("王二");
        user.setuPassword("qwerasdfzxcv");
        SqlSession session = BaseDao.getSqlSession();
        */
/*List<User> userList = session.getMapper(UserDao.class).getUserList();
        userList.stream().forEach(s-> System.out.println(s.getuName()));*//*

//        int num = session.getMapper(UserDao.class).addUser(user);

//        int num = session.getMapper(UserDao.class).updateUser("asadaf","sabjacv",9);
        */
/*int num = session.getMapper(UserDao.class).delUser(10);
        System.out.println(num);*//*



        */
/*List<Users> list = session.getMapper(UserDao.class).getUsersList();

        List<Users> list = session.getMapper(UserDao.class).getUsersList();

        for (Users users : list) {
            System.out.println(users.getUserName());
            for (Address address : users.getAddressList()) {
                System.out.println(address.getAddressDesc() + "----->" + address.getContact());
            }

        }*//*


//        session.getMapper(UserDao.class).updateUser("张三","123",3);
        Map map = new HashMap();
        List ids = new ArrayList();
        ids.add(1);
        ids.add(2);
        ids.add(3);
        ids.add(4);
        map.put("ids", ids);

        */
/*List<User> mapLists = session.getMapper(UserDao.class).getMapLists(map);
        System.out.println(mapLists.size());*//*


        */
/*List<User> userList = session.getMapper(UserDao.class).getUsersLists(ids);
        System.out.println(userList.size());*//*


        PageHelper.startPage(2,3);
        List<User> userList = session.getMapper(UserDao.class).getUserList();






        }
        session.close();

    }
}*/
